package com.redStudio.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.redStudio.modal.Item;

import java.util.List;

public interface ItemRepository extends JpaRepository<Item, Integer> {

  @Query("SELECT id,checked,description FROM Item  WHERE checked=1")
  List<Item> findChecked();
}